﻿
using GSOrganization.Application;

namespace GSOrganization.Application;

/// <summary>
/// 角色管理
/// </summary>
public interface ISysRoleService
{
    /// <summary>
    /// 角色-授权，保存角色的菜单
    /// </summary>
    /// <returns></returns>
    ResponseModel SetMenu(SysRoleSyeMenuInput entity);
    /// <summary>
    /// 获取单个实体
    /// </summary> 
    /// <param name="id">主键</param>
    /// <returns></returns>    
    SysRoleOutput GetSysRole(string id);
    /// <summary>
    /// 列表
    /// </summary>
    /// <param name="param">列表的参数对象</param>
    /// <returns>列表返回值</returns>
    ResponseModel<List<SysRoleIndexOutput>> DataSysRole(SysRoleIndexInput param);
    /// <summary>
    /// 创建和修改
    /// </summary>
    /// <param name="entity"></param>
    /// <returns></returns>
    ResponseModel CreateSysRole(SysRoleOutput entity);
    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="id"></param>
    /// <returns></returns>
    ResponseModel DeleteRole(string id);

}


